import request from "@/utils/request";

export function login({ username, password }) {
  return request.post("/admin/acl/index/login", { username, password });
}
/*
  获取用户信息(根据token)
  */
export function getInfo() {
  return request({
    url: "/admin/acl/index/info",
    method: "get",
  });
}

export function logout() {
  return request({
    url: "/admin/acl/index/logout",
    method: "post",
  });
}
